package com.dao;

import com.bean.Teacher;
import com.bean.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository("teacherMapper")
public interface TeacherMapper {
    public User checklogin(User user);

    public List<Teacher> queryAllTea();

    public Teacher queryTeaById(int id);

    public int updateTea(Teacher teacher);

    public int deleteTea(int id);

    public int insertTea(Teacher teacher);

    public List<Teacher> queryTeaByLike(@Param("name") String name, @Param("subject") String subject);
    //��mybatis�ﴫ��������ʱ��������dao�����@Param���������Ĳ������ͰѲ�����װ��bean

}
